.light-theme {
  --bg-color: #ffffff;
  --text-color: #000000;
  --card-bg: #f5f5f5;
}

.dark-theme {
  --bg-color: #141414;
  --text-color: #ffffff;
  --card-bg: #242424;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.3s ease;
}

code {
  font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
    monospace;
}

.layout {
  background: #f0f2f5;
}

.site-layout-content {
  min-height: 280px;
  padding: 24px;
  background: #fff;
}

.header {
  background: linear-gradient(90deg, #1890ff 0%, #096dd9 100%);
}

@media (max-width: 768px) {
  .site-layout-content {
    padding: 16px;
  }

  .header {
    padding: 0 16px;
  }

  .ant-typography-title {
    font-size: 1.5rem !important;
  }
}

/* 动画效果 */
.fade-in {
  animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 表格样式优化 */
.ant-table {
  border-radius: 8px;
  overflow: hidden;
}

.ant-table-thead > tr > th {
  background: #f5f7fa;
  font-weight: 600;
}

.dark-theme .ant-table-thead > tr > th {
  background: #2f2f2f;
  color: rgba(255, 255, 255, 0.85);
}

.dark-theme .ant-table-tbody > tr > td {
  background: #1f1f1f;
  color: rgba(255, 255, 255, 0.65);
}

.dark-theme .ant-card {
  background: #2f2f2f;
  color: rgba(255, 255, 255, 0.85);
}

.dark-theme .site-layout-content {
  background: #1f1f1f;
}

.dark-theme .layout {
  background: #141414;
}